package com.csp.mingyue.common.satoken.config;

import cn.dev33.satoken.stp.StpInterface;
import com.csp.mingyue.common.satoken.service.SaPermissionImpl;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * Sa-Token 配置
 *
 * @author Strive
 * @date 2023/8/9 14:11
 */
@AutoConfiguration
public class SaTokenConfiguration {

	/**
	 * 权限接口实现(使用bean注入方便用户替换)
	 */
	@Bean
	public StpInterface stpInterface() {
		return new SaPermissionImpl();
	}

}
